VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingFactory Class / CreateLinearGradientBrush Methods / CreateLinearGradientBrush(RectangleF,Single,Boolean,GradientStop[]) Method
Syntax Requirements SeeAlso
In This Topic
CreateLinearGradientBrush(RectangleF,Single,Boolean,GradientStop[]) Method (DrawingFactory)
In This Topic
Creates a linear gradient brush.
Syntax
'Declaration

Public Overloads Function CreateLinearGradientBrush( _
ByVal rectangle
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
As System.Drawing.RectangleF, _
ByVal angle
The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.
As Single, _
ByVal isAngleScalable
A value indicating whether the angle is affected by the transform associated with the brush.
As Boolean, _
ByVal ParamArray gradientStops
The brush's gradient stops.
() As GradientStop _
) As IDrawingLinearGradientBrush

Parameters

rectangle
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
angle
The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.
isAngleScalable
A value indicating whether the angle is affected by the transform associated with the brush.
gradientStops
The brush's gradient stops.

Return Value

A new linear gradient brush.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also